<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/page/share/taglib.jsp"%>
<div id="sidebar">
	<ul class="nav">
		<!---------------------------------- 
					人员管理
		 -------------------------------------->
		<buyou:permission privilege="userManage" module="system">
			<li>
				<a class="headitem item1" href="##">人员管理</a>
				<ul class="opened">
				
					<buyou:permission privilege="view" module="user">
						<li class="current">
							<a href="##" onclick="loadJsp(this,'/UserManage!list.action')">
								人员列表 
							</a>
						</li>
					</buyou:permission>
					
					<buyou:permission privilege="view" module="department">
						<li>
							<a href="##" onclick="loadJsp(this,'/control/main/DepartmentList.action')">
								部门管理 
							</a>
						</li>
					</buyou:permission>
				</ul>
			</li>
		</buyou:permission>
		<!---------------------------------- 
					权限管理
		 -------------------------------------->
		<buyou:permission privilege="privilegeManage" module="system">
			<li>
				<a class="headitem item2" href="##">权限管理</a>
				<ul>
					<li>
						<a href="##" onclick="loadJsp(this,'/control/main/PrivilegeGroupList.action')">
							角色管理
						</a>
					</li>
				</ul>
			</li>
		</buyou:permission>

		<!---------------------------------- 
        			库存管理
        -------------------------------------->
		<buyou:permission privilege="productManage" module="system">
			<li>
				<a class="headitem item3" href="##">库存管理</a>
				<ul>
					<buyou:permission privilege="productCategoryManage" module="system">
						<li>
							<a href="##" onclick="loadJsp(this,'/CategoryAction!list.action')">货物类别管理</a>
						</li>
					</buyou:permission>
					<buyou:permission privilege="view" module="product">
						<li>
							<a href="##"
								onclick="loadJsp(this,'/ProductAction!store.action?forSale=true')">货物列表</a>
						</li>
					</buyou:permission>
					<buyou:permission privilege="update" module="product">
						<li>
							<a href="##"
								onclick="loadJsp(this,'/ProductAction!store.action?forSale=false')">下架货物</a>
						</li>
					</buyou:permission>
				</ul>
			</li>
		</buyou:permission>

		<!---------------------------------- 
        			订单管理
        -------------------------------------->
		<buyou:permission privilege="orderManage" module="system">
			<li>
				<a class="headitem item4" href="##">订单管理</a>
				<ul>
					<buyou:permission privilege="view" module="order">
						<li>
							<a href="##"
								onclick="loadJsp(this,'/OrderAction!list.action')">订单列表</a>
						</li>
					</buyou:permission>
					<buyou:permission privilege="delivery" module="order">
						<li>
							<a href="##" onclick="loadJsp(this,'/OrderAction!add.action')">发货管理</a>
						</li>
					</buyou:permission>
				</ul>
			</li>
		</buyou:permission>

		<!---------------------------------- 
        			店铺管理
        -------------------------------------->
		<buyou:permission privilege="outletsManage" module="system">
			<li>
				<a class="headitem item5" href="##">店铺管理</a>
				<ul>
					<li>
						<a href="##"
							onclick="loadJsp(this,'/OutletsAction!findAll.action')">店铺列表</a>
					</li>
				</ul>
			</li>
		</buyou:permission>

		<!---------------------------------- 
        			统计管理
        -------------------------------------->
		<buyou:permission privilege="tongjiManage" module="system">
			<li>
				<a class="headitem item6" href="##">统计管理</a>
				<ul>
					<buyou:permission privilege="purchase" module="tongji">
						<li>
							<a href="##"
								onclick="loadJsp(this,'/StatisticalAction!list.action?type=PURCHASE')">进货统计</a>
						</li>
					</buyou:permission>
					<buyou:permission privilege="sales" module="tongji">
						<li>
							<a href="##"
								onclick="loadJsp(this, '/StatisticalAction!list.action?type=SALES');">销售统计</a>
						</li>
					</buyou:permission>
					<buyou:permission privilege="purchase" module="tongji">
						<li>
							<a href="##"
								onclick="loadJsp(this,'/AccountAction!defaultAccount.action?type=PURCHASE')">核算</a>
						</li>
					</buyou:permission>
				</ul>
			</li>
		</buyou:permission>

		<li>
			<a class="headitem item7" href="##"
				onclick="if(window.confirm('您确定要退出?'))window.location = '/Logoff.action';">退出系统</a>
		</li>
	</ul>
	<!--end subnav-->

</div>
<!--end sidebar-->
